package ns.gflex.domain

/**
 * 创建时间 Dec 14, 2010
 * @author wangchu
 */
class Role {
	String roleName
	String roleCode
	String description
	Boolean editable = true
	Boolean enabled = true

	static constraints = {
		description nullable:true, maxSize:128
		roleCode unique:true
	}

	static init = {
		new Role(roleName:'Administrators',roleCode:'Administrators',editable:false,description:'System Administrators.').save()
		new Role(roleName:'Public',roleCode:'Public',editable:false,description:'Public role associate with public menus.').save()
	}
}
